#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
int main()
{
	char c[] = "afdf";
	strlen(&c+1);
	return 0;
}

//leetcode-11
int maxArea(int* height, int heightSize) {
    int left = 0, right = heightSize - 1;
    int max = 0;
    while (left < right)
    {
        int size = (right - left) * (*(height + right) < *(height + left) ? *(height + right) : *(height + left));
        if (max < size)
            max = size;
        if (*(height + left) < *(height + right))
            left++;
        else
            right--;
    }
    return max;
}